package day12.hmoework20;

/**
 * 盗贼类
 */
public class Robber extends Data implements Rob,Attack{
    public Robber(){}
    public Robber(String name,int level){
        super(name,level);
    }
    @Override
    public void rob() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以偷盗");
    }

    @Override
    public void attack() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以攻击");
    }
}
